{if $smarty.get.ajaxjs == 1}
	{$xajax_javascript}
{else}
{strip}
<html>
{include file='admin/head.html'}
{ext->get_site_settings_id assign="site_data_id"}
<body onLoad="fillFormValuesX(); {if !$smarty.get.show and !$smarty.get.popup}fInitTipObjects() ;{/if}{if $smarty.get.popup}window.focus();{/if}" >
<div id="loadingMessage" style="display: none;">{t t='Kraunasi'}...</div>
{ext->get_site_permision user=$smarty.session.login_user assign="site_permission"}

{if !$smarty.get.show and !$smarty.get.popup}
{include file="admin/tips.html"}
{if $data.page.type=='site_settings01'}
	{assign_session var="body" value="admin/body/site_settings_editor.htm"}			
{/if}

	{if !$smarty.get.id && !$smarty.session.body}
		{include file='admin/title_page.htm'}
	{else}
	<table style="width:100%; height:100%; border:0px; padding:0px;" cellpadding="0" cellspacing="0">
		<tr>
			<td height="70">{include file="admin/menu.htm"}</td>
		</tr>
		<tr>
			<td valign="top" style="padding:0px 15px 0px 15px">		
			{if $smarty.session.body}				
				{if ($smarty.session.body == "admin/body/aditionalelements.htm")}{if ($site_permission.main_blocks == 1)}{assign var="is_access" value="yes"}{else}{assign var="is_access" value="no"}{/if}
				{elseif ($smarty.session.body == "admin/body/site_settings_editor.htm")}{if ($site_permission.main_sitesettings == 1)}{assign var="is_access" value="yes"}{else}{assign var="is_access" value="no"}{/if}
				{elseif ($smarty.session.body == "admin/body/forms/forms.htm")}{if ($site_permission.main_forms == 1)}{assign var="is_access" value="yes"}{else}{assign var="is_access" value="no"}{/if}
				{elseif ($smarty.session.body == "admin/body/client/client.htm")}{if ($site_permission.clients == 1)}{assign var="is_access" value="yes"}{else}{assign var="is_access" value="no"}{/if}
				{elseif ($smarty.session.body == "admin/body/subscribe_news/index.htm")}{if ($site_permission.subscribe_news == 1)}{assign var="is_access" value="yes"}{else}{assign var="is_access" value="no"}{/if}
				{elseif ($smarty.session.body == "admin/body/letters/index.html")}{if ($site_permission.letters == 1)}{assign var="is_access" value="yes"}{else}{assign var="is_access" value="no"}{/if}
				{else}{assign var="is_access" value="yes"}{/if}
				{if $is_access=="yes"}{include file=$smarty.session.body}{else}&nbsp;{/if}
			{else}
				&nbsp;
			{/if}			
			</td>
		</tr>
		<tr>
			<td height="1">
			{include file='admin/footer/main.html'}
			</td>
		</tr>
	</table>
	{/if}
{/if}
{if $smarty.get.popup}{include file='admin/popups.htm"}{/if}
{if $smarty.get.show=='tree'}{include file="admin/tree.htm"}{/if}
{if $smarty.get.show=='admins'}{include file="admin/admins.htm"}{/if}
{if $smarty.get.show=='galer'}{include file="admin/galer.htm"}{/if}
{if $smarty.get.show=='modul'}{include file="admin/modul.htm"}{/if}
</body>
</html>
{/strip}
{/if}
